package net.sourceforge.web.easyui;

import java.util.ArrayList;
import java.util.List;

import net.sourceforge.orm.mybatis.Page;

public class EasyuiGridModel<T> {
	private int total;
	private List<T> rows = new ArrayList<T>();
	private List<T> footer;

	public EasyuiGridModel() {
		super();
	}

	public EasyuiGridModel(Page<T> page) {
		super();
		this.total = page.getTotalCount();
		this.rows = page.getResult();
	}

	public int getTotal() {
		return total;
	}

	public void setTotal(int total) {
		this.total = total;
	}

	public List<T> getRows() {
		return rows;
	}

	public void setRows(List<T> rows) {
		this.rows = rows;
	}

	public List<T> getFooter() {
		return footer;
	}

	public void setFooter(List<T> footer) {
		this.footer = footer;
	}
}
